import Vue from 'vue'
import Router from 'vue-router'
import Pages from '@/admin/ListPage.vue'
import AdminIndex from '@/admin/Index.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/admin/:pageId',
      name: 'AdminIndex',
      component: AdminIndex
    },
    {
      path: '/list',
      name: 'Pages',
      component: Pages
    }
  ]
})
